﻿ namespace TestApp
{
    #region Using Statements

    using System;
    using System.Net;
    using Antlr.Runtime;

    using KLF.Lib.Browser;
    using KLF.Lib.Browser.Events;
    using KLF.Lib.Browser.DOM.HTML;
    using KLF.Lib.Browser.DOM.CSS.SAC;
    using KLF.Lib.Browser.JavaScriptHelpers;
    using KLF.Lib.Browser.DOM.Events;

    #endregion

    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                WebBrowser browser = new WebBrowser();

                browser.OnNavigationError += new EventHandler<NavigationErrorArgs>(browser_OnNavigationError);
                browser.GoTo("http://localhost/test.html");
            }
            catch (Exception ex)
            {
            }
        }

        static void browser_OnNavigationError(object sender, NavigationErrorArgs e)
        {
            Console.WriteLine("A navigation error occurred: {0}", e.Error.Message);
        }
    }
}
